package com.github.leecho.spring.cloud.gateway.dubbo.client;

import com.github.leecho.spring.cloud.gateway.dubbo.route.DubboRoute;
import com.github.leecho.spring.cloud.gateway.dubbo.route.DubboRoute.DubboProvider;
import org.apache.dubbo.config.spring.ReferenceBean;
import org.apache.dubbo.rpc.service.GenericService;

/**
 * Dubbo服务工厂
 *
 * @author LIQIU
 * @date 2021/7/28 8:45
 */
public interface DubboGenericServiceFactory {

	/**
	 * 构建Dubbo ReferenceBean
	 *
	 * @param dubboProvider dubbo接口
	 * @return Dubbo ReferenceBean
	 */
	ReferenceBean<GenericService> build(DubboProvider dubboProvider);

}
